<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:ui="http://java.sun.com/jsf/facelets" 
    xmlns:f="http://java.sun.com/jsf/core" 
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:p="http://primefaces.org/ui">

    <ui:composition template="/jsf/template.xhtml">
    	<ui:define name="content">
    	
    		<h:form id="form">
    		
    			<p:panel header="Controle de Caixa - Mês Atual">
    			
    				<p:dataTable id="dataTable" var="listaControleCaixa" value="#{controleCaixaMB.listControleCaixa}">
    				
    					<p:column headerText="Receita/Despesa">
	    					<h:outputText value="#{listaControleCaixa.receitaDespesaString}" />
	    				</p:column>
	    				
	    				<p:column headerText="Descrição">
	    					<h:outputText value="#{listaControleCaixa.descricao}" />
	    				</p:column>
	    				
	    				<p:column headerText="Valor">
	    					<h:outputText value="#{listaControleCaixa.valor}" >
	    						<f:convertNumber type="number" maxFractionDigits="0"/>
	    					</h:outputText>
	    				</p:column>
	    				
	    				<p:column headerText="Data">
	    					<h:outputText value="#{listaControleCaixa.data}" />
	    				</p:column>
	    				
	    				<p:column headerText="Categoria">
	    					<h:outputText value="#{listaControleCaixa.categoriaString}" />
	    				</p:column>
    				
    				</p:dataTable>
    			
    			</p:panel>
    		
    		</h:form>
    		
    	</ui:define>
    </ui:composition>
    
</html>